package com.yicong.ants.bean;

import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * 全国城市Bean
 */
public class NationalCityBean {

    /**
     * code : 2000
     * msg : 获取成功！
     * data : [{"city_id":"2","name":"北京"},{"city_id":"2","name":"北京"}]
     */

    private String code;
    private String msg;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements IPickerViewData {
        /**
         * city_id : 2
         * name : 北京
         */

        private String city_id;
        private String name;

        public String getCity_id() {
            return city_id;
        }

        public void setCity_id(String city_id) {
            this.city_id = city_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }
}
